home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1929 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsfeed.gsfc.nasa.gov!usenet
  2. From: Stephen Maher <Stephen.Maher@gsfc.nasa.gov>
  3. Newsgroups: comp.lang.c
  4. Subject: Examples of using "volatile"?
  5. Date: 17 Jan 1996 21:09:54 GMT
  6. Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
  7. Message-ID: <4djoj2$mr1@post.gsfc.nasa.gov>
  8. NNTP-Posting-Host: wentworth.gsfc.nasa.gov
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1S (X11; I; IRIX 5.3 IP22)
  13. X-URL: news:comp.lang.c/106698-106797#4dbqdj$7h2@redstone.interpath.net
  14.  
  15. Hi,
  16.  
  17. I'd like a concrete example(s) illustrating a reason to
  18. use the "volatile" type qualifier.
  19.  
  20. I understand the *theory* behind volatile (e.g., to
  21. avoid unwanted side-effects?).  I also realize it's
  22. probably implementation dependent. But some examples
  23. from any implementation should help me understand
  24. its use a little better.
  25.  
  26. Thanks,
  27.  
  28. Steve
  29. --
  30. Stephen.Maher@gsfc.nasa.gov                     (301) 286-3368
  31. Scientfic Visualization Studio              (f) (301) 286-1634
  32. Code 932 NASA Goddard Space Flight Center
  33.  
  34.